package com.bsoft.utils;

import com.bsoft.Exception.CommonException;
import com.bsoft.mapper.business.RegisterMapper;
import com.bsoft.mapper.identity.IdentityMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.sql.Clob;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 异步调用类
 */
@Service
public class AsyncUtil {
    @Autowired
    RegisterMapper registerMapper;

    /**
     * 保存病人账户
     */
    @Async("asyncThreadPoolTaskExecutor1")
    public void savePatientAccountInfo(String EID,String patientId ) {

        Map<String, Object> msBrzh = new HashMap<>();
        msBrzh.put("brid", patientId);
        msBrzh.put("brkh", EID);
    }


}
